﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="delegatecontent.aspx.cs" Inherits="HFWebApp.delegates.delegatecontent" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ Register src="../Control/top.ascx" tagname="top" tagprefix="uc1" %>
<%@ Register src="../Control/end.ascx" tagname="end" tagprefix="uc2" %>
<%@ Register src="../Control/c_LawyerList.ascx" tagname="c_LawyerList" tagprefix="uc3" %>
<%@ Register src="../Control/c_LawyerList2.ascx" tagname="c_LawyerList2" tagprefix="uc4" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8" />
<title><%=model.DelegateName %>_案例委托_红法网</title>
<link href="<%=this.getDemain %>/Style/Style.css" rel="stylesheet" type="text/css" />
<link href="<%=this.getDemain %>/CSS.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="<%=this.getDemain %>/Scripts/jquery-1.8.0.min.js"></script>
<script type="text/javascript"  src="<%=this.getDemain %>/javascript/SwitchTags.js"></script>
<script type="text/javascript">
    function sendDelegate() {
        var delegateid = '<%=model.ID %>';
        $.getJSON(
            "/AjaxSource/AddLawyerDelegate.ashx",
            {
                delegateid: delegateid,
                rand: Math.floor(Math.random() * 10000).toString()
            },
            function (jsonData) {
                alert(jsonData.Message);
            }
        );
    }
</script>
</head>

<body>
    <uc1:top ID="top1" MenuClassID="5" focusLink5="focusLink" runat="server" />
    <table width="980" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="730" valign="top">
    <table width="720" border="0" cellpadding="0" cellspacing="0" class="bk_xw">
        <tr>
          <td height="260" valign="top">
          
          <table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td height="42" align="left">
                <%if (this.checkShowDelegate(model.ID.ToString()))
                  { %>
                <div class="jobTitle">案例委托</div>
                <div class="jobsContent">
                    <ul>
                        <li><strong>案例主题</strong></li>
                        <li class="liFilex"><%=model.DelegateName%></li>
                    </ul>
                    <ul>
                        <li><strong>委托类型</strong></li>
                        <li class="liFilex"><%=getLegalAffairs(model.LegalAffairsID.ToString())%> - <%=getLegalAffairsBig(model.LegalAffairsClassID.ToString(), model.LegalAffairsID.ToString())%></li>
                    </ul>
                    <ul>
                        <li><strong>委托金额</strong></li>
                        <li class="liFilex"><%=model.InvolvedCaseMoney.ToString() == "0" ? "面议" : model.InvolvedCaseMoney.ToString()%></li>
                    </ul>
                    <ul>
                        <li><strong>委托费用</strong></li>
                        <li class="liFilex"><%=model.DelegateMoney.ToString() == "0" ? "面议" : model.DelegateMoney.ToString()%></li>
                    </ul>
                    <ul>
                        <li><strong>当事人性质</strong></li>
                        <li class="liFilex"><%=model.DelegatePersonType%></li>
                    </ul>
                </div>
                <div class="jobTitle">联系方式</div>
                <div class="jobsContent">
                <ul>
                     <li><strong>联系电话</strong></li>
                     <li class="liFilex"><%=model.Phone%></li>
                 </ul>
                 <ul>
                     <li><strong>电子邮件</strong></li>
                     <li class="liFilex"><%=model.Email%></li>
                 </ul>
                 <ul>
                     <li><strong>发布日期</strong></li>
                     <li class="liFilex"><%=model.Addtime%></li>
                 </ul>
                 <ul>
                     <li><strong>到期日期</strong></li>
                     <li class="liFilex"><%=model.Endtime%></li>
                 </ul>
                 </div>
                 <div class="jobTitle">委托内容</div>
                 <div class="jobsContent2">
                    <%=model.DelegateContent%>
                 </div>
                 <div class="jobTitle">委托要求</div>
                 <div class="jobsContent2">
                    <%=model.DelegateClaim%>
                 </div>
                 <div class="jobTitle">律师接洽</div>
                 <div class="jobsContent">
                    <ul>
                         <li><strong>接洽数量</strong></li>
                         <li class="liFilex"><%=model.ReplyCount%></li>
                     </ul>
                     <ul>
                         <li></li>
                         <li class="liFilex"><input id="Button1" type="button" onclick="sendDelegate();" value="我是律师，我要接洽" /></li>
                     </ul>
                 </div>
                 <%}
                  else
                  {%>
                  <div class="jobsContent2">    
                        <span style="color:Red; font-size:16px;">只有律师和自己发布的委托才可以查看！</span>
                 </div>
                 <%} %>
              </td>
            </tr>
          </table>
            </td>
        </tr>
    </table></td>
    <td valign="top"><table width="250" border="0" cellpadding="0" cellspacing="0" class="bt_bj_25">
        <tr>
          <td height="31" valign="bottom"><table width="111" border="0" cellspacing="0" cellpadding="0" style="margin-left:6px">
            <tr>
              <td height="26" align="center" background="images/pro_bj1.jpg" class="bt_h_14">推荐律师</td>
            </tr>
          </table></td>
        </tr>
    </table>
      <table width="250" border="0" cellpadding="0" cellspacing="0" class="bk_xzy">
        <tr>
          <td height="325" valign="top" style=" padding-top:6px;">
            <uc4:c_LawyerList2 ID="c_LawyerList21" Count = "6" runat="server" />
            </td>
        </tr>
    </table>
      <table width="250" border="0" cellpadding="0" cellspacing="0" class="bt_bj_25" style="margin-top:12px">
        <tr>
          <td height="31" valign="bottom"><table width="111" border="0" cellspacing="0" cellpadding="0" style="margin-left:6px">
            <tr>
              <td height="26" align="center" background="images/pro_bj1.jpg" class="bt_h_14">本周人气律师</td>
            </tr>
          </table></td>
        </tr>
    </table>
      <table width="250" border="0" cellpadding="0" cellspacing="0" class="bk_xzy">
        <tr>
          <td height="320" valign="top" style=" padding-top:10px; ">
            <uc3:c_LawyerList ID="c_LawyerList1" Count="10" runat="server" />
            </td>
        </tr>
    </table></td>
  </tr>
</table>
<uc2:end ID="end1" runat="server" />
</body>
</html>
